/*
 * @Description: 公共路由
 * @Version: 1.0
 * @Autor: jiajun wu
 * @Date: 2021-11-30 10:13:57
 * @LastEditors: jiajun wu
 * @LastEditTime: 2021-12-01 14:08:52
 */
import { UserLayout, BasicLayout } from "@/components/layouts";
import { example } from "./exampleRouterMap";
import { Router } from "./types";

export default [
  example,
  {
    path: '/user',
    name: 'user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import('@/views/user/login/login.vue'),
        meta: { title: 'user.login.login' }
      },
      {
        path: 'register',
        name: 'register',
        component: () => import('@/views/user/login/Register.vue'),
        meta: { title: 'user.login.signup' }
      },
    ]
  },
  {
    path: '/:path(.*)',
    name: 'NoMatch',
    component: () => import('@/views/exception/404.vue'),
  }
] as Router[]
